<?php


namespace app\h5\controller;

use app\common\controller\H5Controller;

class Wiki extends H5Controller {

    public function index() {
        $params = $this->checkParams('id');
        $params['id'] = base64_decode($params['id']);
        $url = Db('Wiki')->where('id', $params['id'])->value('filename');
        if ($url != '') {
            Db('Wiki')->where('id', $params['id'])->setInc('play_num');
            return $this->fetch($url);
        }

    }
}